package xyz.suancaiyu;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 获取application.properties中的属性
 * <p>
 * Created by puruidong on 2017/9/26.
 */
@Component
@ConfigurationProperties("amazon")
public class AmazonProperties {


    private String associateId;

    public void setAssociateId(String associateId) {
        this.associateId = associateId;
    }

    public String getAssociateId() {
        return associateId;
    }
}
